<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <div th:replace="~{/fragment/header :: header}"></div>
    <div th:replace="~{/fragment/header :: header-css}"></div>
    <div th:replace="~{/fragment/header :: header-nav}"></div>
</head>
<body>
<form action="/parking/save" th:action="@{/parking/save}" th:object="${parking}" method="post">
    <input th:field="*{id}" type="hidden"/>


    <div class="col-auto">
        <span for="Name" class="input-group-text">停车场名称</span>
        <input th:field="*{name}" type="text" class="form-control" id="Name">
    </div>

    <div class="col-auto">
        <span  for="volumetric" class="input-group-text">容积</span>
        <input th:field="*{volumetric}"  id="volumetric" class="form-control" th:type="number">
    </div>

    <div class="col-auto">
        <span class="input-group-text">咨费标准</span>
        <select class="form-control" id="pricingId" name="pricingId">
            <option th:each="pricing:${pricingList}" th:value="${pricing.id}" th:text="${#dates.format(pricing.updateTime,'yyyy-mm-dd hh:mm:ss')}"></option>
        </select>
    </div>



    <div class="mb-3 form-check">
        <input type="checkbox" class="form-check-input" id="exampleCheck1">
        <label class="form-check-label" for="exampleCheck1"> 检查 </label>
    </div>
    <button type="submit" class="btn btn-primary">提交</button>
    <a th:href="@{/parking/list}" class="btn btn-group-sm">返回</a >
</form>
</body>
<div th:replace="~{/fragment/header :: header-js}"></div>
<div th:replace="~{/fragment/footer :: footer}"></div>
</html>